package com.masterclient.app.businessmodule.vipmodule.financial_management.api;

import com.eoner.baselib.container.CommonBaseResponse;
import com.masterclient.app.businessmodule.vipmodule.financial_management.bean.BankCardBean;
import com.masterclient.app.businessmodule.vipmodule.financial_management.bean.CashBaseInfoData;
import com.masterclient.app.businessmodule.vipmodule.financial_management.bean.RechargeRecordData;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface FinancialApi {
    @GET("/v1/dealer/income_center/bank_card_list")
    Observable<CommonBaseResponse<List<BankCardBean>>> bankCardList();
    @GET("v1/dealer/income_center/withdraw/preview")
    Observable<CommonBaseResponse<CashBaseInfoData>> cashBaseInfo(@Query("withdraw_source")String withdraw_source);
    @POST("/v1/dealer/income_center/withdraw/apply")
    Observable<CommonBaseResponse> cashApply(@Body RequestBody requestBody);
    @GET("/v1/dealer/finance/purchase/money/recharge/list")
    Observable<CommonBaseResponse<RechargeRecordData>> rechargeRecord(@Query("page")String page
            , @Query("page_size")String page_size);
    @GET("/v1/dealer/income_center/withdraw/list")
    Observable<CommonBaseResponse<RechargeRecordData>> cashRecord(@Query("page")String page
            ,@Query("page_size")String page_size,@Query("withdraw_source")String withdraw_source);
}
